/* eslint-disable no-param-reassign */

const initRightDrawerEvent = {
  // 触发的事件名
  key: '',
  // 触发事件所传递的数据
  data: ''
}
const ecuData = {
  state: {
    // 加密限制列表
    encryptLimitList: [
      { value: '2', name: '需要加密' },
      { value: '3', name: '不需要加密' }
    ],
    // 签名限制列表
    signLimitList: [
      { value: '2', name: '需要签名' },
      { value: '3', name: '不需要签名' }
    ],
    rightDrawerEvent: { ...initRightDrawerEvent }
  },
  mutations: {
    setEcuManagementRightDrawerEvent (state, val) {
      state.rightDrawerEvent = val
    },
    resetEcuManagementRightDrawerEvent (state) {
      state.rightDrawerEvent = { ...initRightDrawerEvent }
    }
  },
  actions: {

  }
}

export default ecuData
